﻿<%@ Page Language="C#" MasterPageFile="~/SubForm.Master" AutoEventWireup="true" Codebehind="CloseDate.aspx.cs"
    Inherits="PreContractWeb.Administration.CloseDate" Title="CloseDate Page" EnableEventValidation="false" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="divError" runat="server" visible="false">
    </div>
    <div id="divConnect" runat="server">
        <asp:ScriptManager id="CloseDateScriptManager" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel id="CloseDateUpdatePanel" runat="server">
            <contenttemplate>
<INPUT id="returnvalue" type=hidden name="returnvalue" runat="server" __designer:dtid="2814749767106567" /> <TABLE cellSpacing=0 cellPadding=0 width="95%" align=center border=0><TBODY><TR><TD vAlign=middle align=center><BR /><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0><TBODY><TR><TD style="WIDTH: 10%" vAlign=middle align=left>输入年份:<BR />Input Year:</TD><TD align=left><asp:DropDownList id="YearDropDownList" runat="server">
                                    </asp:DropDownList>&nbsp; <asp:Button id="SearchButton" onclick="SearchButton_Click" runat="server" CssClass="bgButton" Text="查询(Search)" ToolTip="查询" isvalidate="true"></asp:Button> </TD><TD align=right><asp:Button id="btnadd" visible="false" runat="server" CssClass="bgButton" Text="添加(Add)" ToolTip="添加关帐日">
                                    </asp:Button></TD></TR><TR align=left><TD align=left colSpan=3><!--Panel Body--><BR /><DIV style="OVERFLOW: auto" id="divReport" runat="server"><TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0><TBODY><TR><TD style="HEIGHT: 100%" vAlign=middle align=left><asp:GridView id="gvCloseDate" runat="server" Width="100%" PageSize="20" OnRowDataBound="gvCloseDate_RowDataBound" DataKeyNames="CloseDateID" AutoGenerateColumns="False" EmptyDataText="There is no data in the year you input.">
<PagerSettings Visible="False"></PagerSettings>
<Columns>
<asp:BoundField HtmlEncode="False" DataField="Month" HeaderText="月份&lt;br/&gt;Month">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundField>
<asp:BoundField HtmlEncode="False" DataFormatString="{0:yyyy-MM-dd}" DataField="EndDate" HeaderText="截止日&lt;br/&gt;EndDate">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
</asp:BoundField>
<asp:TemplateField HeaderText="编辑&lt;br/&gt;Edit">
<ItemStyle HorizontalAlign="Center"></ItemStyle>
<ItemTemplate>
                                                                        <asp:ImageButton ID="imgedit" runat="server" ImageUrl="../images/COMEDIT.GIF" ToolTip="编辑省份信息" />
                                                                    
</ItemTemplate>
</asp:TemplateField>
</Columns>

<RowStyle Height="20px" CssClass="table_row_1"></RowStyle>

<SelectedRowStyle CssClass="SelectedRow"></SelectedRowStyle>

<HeaderStyle CssClass="table_header"></HeaderStyle>

<AlternatingRowStyle CssClass="table_row_2"></AlternatingRowStyle>
</asp:GridView> </TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
</contenttemplate>
        </asp:UpdatePanel></div>

    <script language="javascript" type="text/javascript">
    window.attachEvent("onresize",resizeFunc); 
    resizeFunc();   
   function ShowPage(id)
   {
    var arg = null;
  
     var top=(screen.height-450)/2;
     var left=(screen.width-800)/2;
     
     arg =  window.showModalDialog('EditCloseDate.aspx?id='+id,'','dialogHeight:450px;dialogWidth:800px;dialogTop:'+top+';dialogLeft:'+left+';center:Yes;scroll:no;hidden;resizable:no;status:no;');
   
     if(arg != null)
     {
		document.getElementById('<%=returnvalue.ClientID%>').value   = arg[0];
     }
  }
  
   window.attachEvent("onresize",resizeFunc); 
    resizeFunc();
    </script>
</asp:Content>
